Skip to content

ci: deploy releases to the K3s cluster - #6

Merged
SeasonsChange422 merged 1 commit into
mainfrom
ci/deploy-to-k3s
Nov 11, 2026
Merged

SeasonsChange422 merged 1 commit into
mainfrom
ci/deploy-to-k3s

Conversation

@SeasonsChange422

Copy link
Copy Markdown
Member

Production moved from Docker on 207.57.124.102 to the K3s cluster (k3s.seasonschange.cn) on 2026-11-11. The service is already running there; this PR only changes how releases reach it.

Changes

  • deploy-production now runs helm upgrade multica deploy/helm/multica -f deploy/k3s/values.yaml, setting only the image tags. It waits for the rollout, then checks https://steinai.tmlab.top/api/config
  • Adds deploy/k3s/values.yaml and deploy/k3s/ingress.yaml, the config currently running in the cluster. Secrets stay in the multica-secrets Secret
  • The sshpass/compose deploy steps are removed

Verification

  • helm upgrade --dry-run=server with these values renders the same manifest as the running release (v0.1.9)
  • Run with the CI ServiceAccount, which can manage stein-ai only and cannot touch other namespaces

Secrets

  • KUBE_CONFIG is set: a kubeconfig for ServiceAccount stein-ai/ci-deployer
  • SERVER_IP, SERVER_USER and SERVER_PWD are no longer used and can be deleted after merge

Rollback: helm -n stein-ai rollback multica

🤖 Generated with Claude Code

Production moved from docker compose on 207.57.124.102 to the K3s cluster
(namespace stein-ai, Helm release "multica", database in the shared
CloudNativePG cluster pg-main). The deploy-production job now runs
`helm upgrade` with the in-repo chart and deploy/k3s/values.yaml, setting
only the image tags, then checks the public endpoint.

- Add deploy/k3s/values.yaml and deploy/k3s/ingress.yaml (the config that
  currently runs in the cluster; secrets stay in the multica-secrets Secret)
- Replace the sshpass/compose deploy steps; needs repository secret
  KUBE_CONFIG (namespace-scoped ServiceAccount stein-ai/ci-deployer)
- SERVER_IP, SERVER_USER and SERVER_PWD are no longer used

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SeasonsChange422
SeasonsChange422 merged commit 83179d4 into main Nov 11, 2026
11 checks passed
@SeasonsChange422
SeasonsChange422 deleted the ci/deploy-to-k3s branch November 11, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant